<% if defined?(archives) -%>
  <b>Linked with Data Extracts(s):</b>
  <% if !archives.empty? -%>

    <% archives.each do |archive| -%>
      <%= link_to(archive.title, csvarchive_path(archive)) -%>
    <% end -%>
  <% else -%>
    None
  <% end -%>
<% end -%>
<% if defined?(surveys) %>
<br/>
<br/>
  <b>Linked with Survey(s):</b>
  <% if !surveys.empty? -%>

    <% surveys.each do |survey| -%>
      <%= link_to(survey.title, survey_path(survey)) -%>
    <% end -%>
  <% else -%>
    None
  <% end -%>
<% end %>
<%if defined?(scripts) %>
  <br/>
<br/>
  <b>Linked with Script(s):</b>
	<% if !scripts.empty? -%>
    <% scripts.each do |script| -%>
      <%= link_to(script.title, script_path(script)) -%>
    <% end -%>
  <% else -%>
    None
  <% end -%>
<% end %>
<% if defined?(publications) %>
  <br/>
<br/>
  <b>Linked with Publication(s):</b>
	<% if !publications.empty? -%>
    <% publications.each do |publication| -%>
      <%= link_to(publication.title, publication_path(publication)) -%>
    <% end -%>
  <% else -%>
    None
  <% end -%>
<% end %>